Skip to content

JavaScript: Simplify an if condition.#585

Merged
semmle-qlci merged 1 commit into
github:masterfrom
xiemaisi:js/join-order-fiddling
Nov 30, 2018
Merged

JavaScript: Simplify an if condition.#585
semmle-qlci merged 1 commit into
github:masterfrom
xiemaisi:js/join-order-fiddling

Conversation

@xiemaisi

Copy link
Copy Markdown

By pulling this out of the condition we can avoid computing its negation for the else branch, which could previously lead to quite an enormous pipeline.

By pulling this out of the condition we can avoid computing its negation for the `else` branch, which could previously lead to quite an enormous pipeline.
@xiemaisi xiemaisi added the JS label Nov 30, 2018
@xiemaisi xiemaisi requested a review from a team as a code owner November 30, 2018 09:34

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. LGTM.

@semmle-qlci semmle-qlci merged commit dbeb2df into github:master Nov 30, 2018
@xiemaisi xiemaisi deleted the js/join-order-fiddling branch December 3, 2018 09:40
cklin pushed a commit that referenced this pull request May 23, 2022
Fix getAPrimaryQlClass for File classes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants